package com.gitee.wsl.jvm.ext.format

import java.net.URLDecoder
import java.net.URLEncoder

fun String.urlEncode(enc: String): String =
    URLEncoder.encode(this, enc)

fun String.urlDecode(enc: String): String =
    URLDecoder.decode(this, enc)